2 Comments
Clearing the list on line 8 should probably happen outside the loop or you're going to wind up with a list of one when it's all over, no?
I'd really appreciate it if you'd leave this comment on the site, so that the person who posted it can respond to it immediately and you'll also be helping their work.